package edu.xust.mapper;

import edu.xust.entity.TStudent;
import edu.xust.entity.TStudentExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TStudentMapper {
    long countByExample(TStudentExample example);

    int deleteByExample(TStudentExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TStudent record);

    int insertSelective(TStudent record);

    List<TStudent> selectByExample(TStudentExample example);

    TStudent selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TStudent record, @Param("example") TStudentExample example);

    int updateByExample(@Param("record") TStudent record, @Param("example") TStudentExample example);

    int updateByPrimaryKeySelective(TStudent record);

    int updateByPrimaryKey(TStudent record);

    //使用mybatis 分页插件 plugins完成分页

    List<TStudent> getTStudentByPage(Map<String,Object> map)throws Exception ;

    //自定义条件查询
    List<Map> genricSelect(String sql);
}